<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <!-- 把刚刚的那个header.jsp文件包含进去,里面就有了JqueryEasyUI所需要的文件了 -->
    <title>测试</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">



    <link rel="stylesheet" href="../jquery-easyui-1.3.2/demo/demo.css" type="text/css">
    <link rel="stylesheet" href="../jquery-easyui-1.3.2/themes/icon.css" type="text/css">
    <link rel="stylesheet" href="../jquery-easyui-1.3.2/themes/default/easyui.css" type="text/css">
    <script type="text/javascript" src="../jquery-easyui-1.3.2/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="../jquery-easyui-1.3.2/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../jquery-easyui-1.3.2/locale/easyui-lang-zh_CN.js"></script>




</head>

  <body>

  <input type="button" style="background:#00ff00" value="Button" ONCLICK="TEST()">
    ${user.userName}

  <script>
    function makepara(){
      var json=[];


      //var scoreSelect=node.text.split("分");

      json.push({
        'userId':001,
        //'time':scoreFolder,
        //'qNum': pnode.text,
        'userName':"aaa",
        'userPasswd':"sss"
      });


      var obj = JSON.stringify(json);
      //console.log("Json："+json);
      return obj;
    }
    function TEST() {
      /*$.post("",{vector: makepara() },function(itemdata){


      });*/
        $.ajax({
            type:"post",
            contentType:"application/json",
            url:"saveUser.do",
            data: makepara() ,
            dataType:"json",
            success:function onSucc(data){alert("ok");},
            error:function onErr(){alert("请求失败");}
        });
    }

  </script>
  </body>
</html>